package io.renren.modules.biz.service;

import io.renren.common.utils.PageUtils;
import io.renren.modules.biz.entity.CountDto;
import io.renren.modules.biz.entity.GrabPacketEntity;

import java.util.Date;
import java.util.Map;

import com.baomidou.mybatisplus.service.IService;

/**
 * 抢红包会员表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-09-03 14:51:31
 */
public interface GrabPacketService extends IService<GrabPacketEntity> {

	PageUtils queryPage(Map<String, Object> params);

	/**
	 * 统计抢包金额
	 * 
	 * @param memberId
	 * @param mobile
	 * @param startDate
	 * @param endDate
	 * @param status
	 * @return
	 */
	CountDto sumPacketAmount(String memberId, String mobile, String startDate, String endDate);

	/**
	 * 机器人盈利(不含平台抽水)
	 * 
	 * @param roomId
	 * @param startDate
	 * @return
	 */
	double robotProfitByRoomId(Long roomId, Date startDate);
}
